<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
    <title>余额获得明细</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta name="author" content="飞啊飘啊">
	<meta name="hashcode" content="1617024074">
	
	<script>window.duteTag="lz";</script>
	<script type="text/javascript" src="/admin/js/dute-1.0.js"></script>
	<script type="text/javascript" src="/admin/js/jquery-1.7.1.min.js"></script>
	
	<script type="text/javascript" src="/admin/js/lazy3q.ui.js"></script>
	<script>
		document.write('<link rel="stylesheet" type="text/css" href="/admin//css/'+($.cookie('theme')||'elegant')+'/lazy3q.ui.css" /> ');
	</script>
	
	<script type="text/javascript" src="/admin/js/jquery-ui-1.10.2.custom.min.js"></script>
	
	<!-- 用户自定义js(懒加载) -->
	<script type="text/javascript" src="/admin/js/define.js"></script>
	<!-- 用户自定义css样式 -->
	<link rel="stylesheet" type="text/css" href="/admin/css/define.css"/>
	<!-- icon font -->
  	<link rel="stylesheet" href="/admin/css/iconfont.css">
	
	
	
	<script type="text/javascript">
		window.basePath="/";
		window.hashcode = "1617024074";
	</script>
		
	<!-- 感谢kindeditor出品的在线HTML编辑控件 -->
	<script type="text/javascript" charset="utf-8" src="/admin/js/kindeditor/kindeditor.js"></script>
		
	<!-- 感谢My97DatePicker出品的时间控件 -->
	<script language="javascript" type="text/javascript" src="/admin/js/My97DatePicker/WdatePicker.js"></script>
	
	<!------------------------VIEW_HTML_HEAD------------------------>
	<!------------------------VIEW_HTML_HEAD------------------------>	
	
</head>
<script>
Page({
  data:{
    
  },
  onLoad: function(options) {
  	var THIS = this;
  	THIS.setData(options);
  	$.getAjax("productdetails.get.do",options,function(protocol){
  		if(protocol.message){
  			$.toast(protocol.message);
  		}
  		document.title={
  			 "insert":"创建余额获得明细"
  			,"inport":"导入余额获得明细"
  			,"update":"修改余额获得明细"
  			,"detail":"余额获得明细详情"
  		}[options.edittype];
  		THIS.setData(protocol.data); 
  		/******************VIEW_HTML_SET_DATA******************/
  		/******************VIEW_HTML_SET_DATA******************/
  	});
  }
});
</script>
<script>
window["lzFlashUrl"]=top.lzFlashUrl||"/admin/flash/";
window["uploadUrl"]=top.uploadUrl||"/admin/upload.do";

$(function(){
		 
	$("#productdetailsForm").form({
		"":function(){}
		,"productDetails.id":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"productDetails.ways":function(el){
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "获得方式最大长度为32个字符";
		}
		,"productDetails.brand":function(el){
		}
		,"productDetails.member":function(el){
		}
		,"productDetails.commodity":function(el){
		}
		,"productDetails.price":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "价格输入格式错误";
		}
		,"productDetails.number":function(el){
				if(el.value.length>10)
					return "数字太大了";
					 var pattern = /^-?(0|[1-9][0-9]*)?$/;
					 if(!pattern.test(el.value))
						return "请输入正确格式的数字";			
		}
		,"productDetails.chong":function(el){
				if(el.value.length>10)
					return "数字太大了";
					 var pattern = /^-?(0|[1-9][0-9]*)?$/;
					 if(!pattern.test(el.value))
						return "请输入正确格式的数字";			
		}
		,"productDetails.zeng":function(el){
				if(el.value.length>10)
					return "数字太大了";
					 var pattern = /^-?(0|[1-9][0-9]*)?$/;
					 if(!pattern.test(el.value))
						return "请输入正确格式的数字";			
		}
		,"productDetails.addTime":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "获得时间不能为空";
			}
		}
		,"productDetails.status":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "请选择状态";
			}
		}
	},function(){
		/******************************LAZY3Q_FORM_VALIDATE******************************/
		/******************************LAZY3Q_FORM_VALIDATE******************************/
	});		
});
</script>

<body style="display:none;">



<!------------------------VIEW_HTML_TOP------------------------>
<!------------------------VIEW_HTML_TOP------------------------>


<form enctype="{{inports!=null?'multipart/form-data':''}}" lz:if="{{edittype=='insert'||edittype=='update'||edittype=='detail'||edittype=='any'||edittype=='inport'}}" class="form editform edittype_{{edittype}}" ref="ProductDetails" id="productdetailsForm" name="productdetailsForm" target="jsoniframe" action="productdetails.{{edittype=='any'?'update':edittype}}.do" method="post">
	<div class="head"></div>
	<div class="body">
		<div class="content">
			<div lz:if="{{edittype!='detail'}}" class="prompt" style="display:none;">
				温馨提示：请仔细填写余额获得明细相关信息，<span class="extrude">"*" 为必填选项。</span>
			</div>
			<br/>
			<lz:block lz:if="{{message}}">
			<br/>
			<center>
				<font color="red"><h4>{{message}}</h4></font>
			</center>
			<br/>
			</lz:block>
			<input type="hidden" value="{{complete}}" name="complete" id="complete" />
			<input type="hidden" value="{{ids}}" name="ids" id="ids" />
			<textarea name="PARAMS" id="PARAMS" style="display:none">{{PARAMS}}</textarea>
			
			
			<lz:block lz:if="{{inports}}">
			  <div class="line"></div>
			  <dl style="width:98%;">
			  	<dt>Excel文件:</dt>
			  	<dd>
			  		<input type="hidden" value="{{inports}}" name="inports" id="inports" />
			  		<input type="hidden" value="{{inport$}}" name="inport$" id="inport$" />
			  		<input name="file" name="file" type="file"/>
			  		<b>*</b>
			  		<div>
						请上传excel文件，表格列依次为：[{{inport$}}]，excel表格第一行为列名称，将不作为上传数据行
					</div>
			  	</dd>
			  </dl>
			  <div class="line"></div>
			</lz:block>
	{{lz.set("id_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"id"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"id"))))}}
	{{lz.set("id_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$id}}
	<dl lz:if="{{id_editable||id_readonly}}" class="id hidden " major  ref="id">
		<dt>编　　号:</dt>
		<dd lz:if="{{id_editable}}" input="hidden">
			<lz:block lz:if="{{productDetails$id}}">
				{{productDetails$id}}
			</lz:block>
			<lz:block lz:if="{{!productDetails$id}}">
			<input type="hidden" value="{{lz.htm(productDetails.id)}}" name="productDetails.id" id="id" />
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{id_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="id">{{productDetails.id}}</textarea>
		 		<span>
		 	
			 {{lz.html(productDetails.id$||productDetails.id)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$id}}
	{{lz.set("ways_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"ways"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"ways"))))}}
	{{lz.set("ways_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$ways}}
	<dl lz:if="{{ways_editable||ways_readonly}}" class="ribs ways  " major  ref="ways">
		<dt>获得方式:</dt>
		<dd lz:if="{{ways_editable}}" input="text">
			<lz:block lz:if="{{productDetails$ways}}">
				{{productDetails$ways}}
			</lz:block>
			<lz:block lz:if="{{!productDetails$ways}}">
		 	<input type="text" class="input narrow"   name="productDetails.ways" id="ways"  value="{{lz.htm(productDetails.ways)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入余额获得明细的获得方式</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{ways_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="ways">{{productDetails.ways}}</textarea>
		 		<span>
		 	
			 {{lz.html(productDetails.ways$||productDetails.ways)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$ways}}
	{{lz.set("brand_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"brand"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"brand"))))}}
	{{lz.set("brand_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$brand}}
	<dl lz:if="{{brand_editable||brand_readonly}}" class="ribs brand  " major  ref="brand">
		<dt>品牌信息:</dt>
		<dd lz:if="{{brand_editable}}" input="query">
			<lz:block lz:if="{{productDetails$brand}}">
				{{productDetails$brand}}
			</lz:block>
			<lz:block lz:if="{{!productDetails$brand}}">
		 			<input title="请输入品牌信息品牌名称进行查询" class="combox narrow" action="/admin/business/merchant.query.do?value={param}" type="text" id="brand" name="productDetails.brand" text="{{lz.html(productDetails.brand$||productDetails.brand)}}" value="{{lz.htm(productDetails.brand)}}" />
		 			<a class="lookup" href="javascript:void(0);" onclick="if($.trim($('#brand').val())==''){return;};window.href('/admin/business/merchant.detail.html?key='+$('#brand').val())"></a>
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{brand_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="brand">{{productDetails.brand}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/business/merchant.details.html?key=productDetails.brand}')">
			 {{lz.html(productDetails.brand$||productDetails.brand)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$brand}}
	{{lz.set("member_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"member"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"member"))))}}
	{{lz.set("member_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$member}}
	<dl lz:if="{{member_editable||member_readonly}}" class="ribs member  " major  ref="member">
		<dt>所属会员:</dt>
		<dd lz:if="{{member_editable}}" input="query">
			<lz:block lz:if="{{productDetails$member}}">
				{{productDetails$member}}
			</lz:block>
			<lz:block lz:if="{{!productDetails$member}}">
		 			<input title="请输入会员信息昵称进行查询" class="combox narrow" action="/admin/users/member.query.do?value={param}" type="text" id="member" name="productDetails.member" text="{{lz.html(productDetails.member$||productDetails.member)}}" value="{{lz.htm(productDetails.member)}}" />
		 			<a class="lookup" href="javascript:void(0);" onclick="if($.trim($('#member').val())==''){return;};window.href('/admin/users/member.detail.html?key='+$('#member').val())"></a>
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{member_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="member">{{productDetails.member}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/users/member.details.html?key=productDetails.member}')">
			 {{lz.html(productDetails.member$||productDetails.member)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$member}}
	{{lz.set("commodity_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"commodity"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"commodity"))))}}
	{{lz.set("commodity_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$commodity}}
	<dl lz:if="{{commodity_editable||commodity_readonly}}" class="ribs commodity  " major  ref="commodity">
		<dt>商品信息:</dt>
		<dd lz:if="{{commodity_editable}}" input="query">
			<lz:block lz:if="{{productDetails$commodity}}">
				{{productDetails$commodity}}
			</lz:block>
			<lz:block lz:if="{{!productDetails$commodity}}">
		 			<input title="请输入商品信息商品名称进行查询" class="combox narrow" action="/admin/goods/commodity.query.do?value={param}" type="text" id="commodity" name="productDetails.commodity" text="{{lz.html(productDetails.commodity$||productDetails.commodity)}}" value="{{lz.htm(productDetails.commodity)}}" />
		 			<a class="lookup" href="javascript:void(0);" onclick="if($.trim($('#commodity').val())==''){return;};window.href('/admin/goods/commodity.detail.html?key='+$('#commodity').val())"></a>
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{commodity_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="commodity">{{productDetails.commodity}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/goods/commodity.details.html?key=productDetails.commodity}')">
			 {{lz.html(productDetails.commodity$||productDetails.commodity)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$commodity}}
	{{lz.set("price_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"price"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"price"))))}}
	{{lz.set("price_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$price}}
	<dl lz:if="{{price_editable||price_readonly}}" class="ribs price  " major  ref="price">
		<dt>价　　格:</dt>
		<dd lz:if="{{price_editable}}" input="menoy">
			<lz:block lz:if="{{productDetails$price}}">
				{{productDetails$price}}
			</lz:block>
			<lz:block lz:if="{{!productDetails$price}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="productDetails.price" id="price"  value="{{lz.htm(productDetails.price)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入余额获得明细的价格</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{price_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="price">{{productDetails.price}}</textarea>
		 		<span>
		 	
			 {{lz.html(productDetails.price$||productDetails.price)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$price}}
	{{lz.set("number_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"number"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"number"))))}}
	{{lz.set("number_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$number}}
	<dl lz:if="{{number_editable||number_readonly}}" class="ribs number  " major  ref="number">
		<dt>数　　量:</dt>
		<dd lz:if="{{number_editable}}" input="number">
			<lz:block lz:if="{{productDetails$number}}">
				{{productDetails$number}}
			</lz:block>
			<lz:block lz:if="{{!productDetails$number}}">
			<input onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="productDetails.number" id="number"  value="{{lz.htm(productDetails.number)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入余额获得明细的数量</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{number_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="number">{{productDetails.number}}</textarea>
		 		<span>
		 	
			 {{lz.html(productDetails.number$||productDetails.number)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$number}}
	{{lz.set("chong_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"chong"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"chong"))))}}
	{{lz.set("chong_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$chong}}
	<dl lz:if="{{chong_editable||chong_readonly}}" class="ribs chong  " major  ref="chong">
		<dt>充:</dt>
		<dd lz:if="{{chong_editable}}" input="number">
			<lz:block lz:if="{{productDetails$chong}}">
				{{productDetails$chong}}
			</lz:block>
			<lz:block lz:if="{{!productDetails$chong}}">
			<input onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="productDetails.chong" id="chong"  value="{{lz.htm(productDetails.chong)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入余额获得明细的充</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{chong_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="chong">{{productDetails.chong}}</textarea>
		 		<span>
		 	
			 {{lz.html(productDetails.chong$||productDetails.chong)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$chong}}
	{{lz.set("zeng_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"zeng"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"zeng"))))}}
	{{lz.set("zeng_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$zeng}}
	<dl lz:if="{{zeng_editable||zeng_readonly}}" class="ribs zeng  " major  ref="zeng">
		<dt>赠:</dt>
		<dd lz:if="{{zeng_editable}}" input="number">
			<lz:block lz:if="{{productDetails$zeng}}">
				{{productDetails$zeng}}
			</lz:block>
			<lz:block lz:if="{{!productDetails$zeng}}">
			<input onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="productDetails.zeng" id="zeng"  value="{{lz.htm(productDetails.zeng)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入余额获得明细的赠</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{zeng_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="zeng">{{productDetails.zeng}}</textarea>
		 		<span>
		 	
			 {{lz.html(productDetails.zeng$||productDetails.zeng)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$zeng}}
	{{lz.set("addTime_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"addTime"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"addTime"))))}}
	{{lz.set("addTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&true)||(edittype=='detail'))}}
	
	{{before$addTime}}
	<dl lz:if="{{addTime_editable||addTime_readonly}}" class="addTime  " major  ref="addTime">
		<dt>获得时间:</dt>
		<dd lz:if="{{addTime_editable}}" input="date">
			<lz:block lz:if="{{productDetails$addTime}}">
				{{productDetails$addTime}}
			</lz:block>
			<lz:block lz:if="{{!productDetails$addTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" type="text" class="date input narrow" maxlength="19" name="productDetails.addTime" id="addTime"  value="{{productDetails.addTime$}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择余额获得明细的获得时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{addTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="addTime">{{productDetails.addTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(productDetails.addTime$||productDetails.addTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$addTime}}
	{{lz.set("status_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"status"))))&&false)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"status"))))}}
	{{lz.set("status_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$status}}
	<dl lz:if="{{status_editable||status_readonly}}" class="status  " major  ref="status">
		<dt>状　　态:</dt>
		<dd lz:if="{{status_editable}}" input="select">
			<lz:block lz:if="{{productDetails$status}}">
				{{productDetails$status}}
			</lz:block>
			<lz:block lz:if="{{!productDetails$status}}">
		 	<select class="narrow" id="status" name="productDetails.status">
		 		<option value="">请选择</option>
				<option value="1" selected='{{productDetails.status=="1"?"selected":""}}'>正常</option>
				<option value="0" selected='{{productDetails.status=="0"?"selected":""}}'>无效</option>
		 	</select>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择余额获得明细的状态</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{status_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="status">{{productDetails.status}}</textarea>
		 		<span>
		 	
			 {{lz.html(productDetails.status$||productDetails.status)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$status}}
			
			
			<div class="line">
				<center lz:if="{{edittype=='insert'}}">
					<a onclick="$('.ribs').show();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:inline;padding: 0px 15px;">点击展开更多编辑项</a>
					<a onclick="$('.ribs').hide();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:none;padding: 0px 15px;">点击收起更多编辑项</a>
				</center>
			</div>
			<center class="buttons">
				<input type="hidden" value="{{productDetails.id}}" name="productDetails.id" id="id" />
			
			<lz:block lz:if="{{edittype=='insert'||edittype=='update'||edittype=='any'||edittype=='inport'}}">
				<button class="button" type="submit">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					<span class="iconB iconfont icon-weibiaoti8"></span>
					保存&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="cancel();" type="button">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
			
			<lz:block lz:if="{{edittype=='detail'}}">
				<button lz:if="{{canEdit}}" type="button" class="button" onclick='window.location.href="/admin/products/productdetails.edit.html?edittype=update&id={{productDetails.id}}"'>
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					<span class="iconB iconfont icon-weibiaoti8"></span>
					修改&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="cancel();" type="button">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
					
			</center>
			<br/>

		</div>
	</div>
	<div class="foot"></div>		
</form>

 


<!------------------------VIEW_HTML_BOTTOM------------------------>
<!------------------------VIEW_HTML_BOTTOM------------------------>


</body>

<!------------------------VIEW_HTML_FOOTER------------------------>
<!------------------------VIEW_HTML_FOOTER------------------------>
<script>
	
	$(function(){
		if(parent.setit){
			parent.setit("/admin/products/productdetails.edit.html",document.title,"/admin//images/icons/1702680819.png");
		}
	});
	
	function cancel(){
		if(parent.closeHref){
			parent.closeHref("/admin/products/productdetails.edit.html");
		}else{
			$.closeModalDialog();
		}
	}


</script>
</html>